<section ng-controller="navbarController as vm">
  <a ng-repeat="menu in vm.menus track by $index" ui-sref="{{menu.state}}">
    {{menu.displayName}}
  </a>
  <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle show pull-left" data-target="sidebar">
    <span class="sr-only">Toggle navigation</span> <span
    class="icon-bar"></span><span class="icon-bar"></span><span
    class="icon-bar"></span>
    </button>
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false"
            aria-controls="navbar">
    <span class="sr-only">Toggle navigation</span> <span
    class="icon-bar"></span><span class="icon-bar"></span><span
    class="icon-bar"></span>
    </button>
          <a class="navbar-brand" href="/#!/welcome">Csystem-fronEnd</a>
        </div>
        <div id="navbar" class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
    
          </ul>
          <ul class="nav navbar-nav navbar-right">
            <li class="dropdown" ng-switch="flag">
              <div style="padding-right:60px;margin-top:13px;font-size:17px;" ng-switch-when="false">
                <a style="color:#9d9d9d" ng-href="/#!/login">登录</a>
                <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                <a style="color:#9d9d9d" ng-href="/#!/regist">注册</a>
              </div>
              <div ng-switch-when="true" style="padding-right:60px;margin-top:13px;font-size:17px;" uib-dropdown on-toggle="toggled(open)">
                <span style="color:#9d9d9d" href id="simple-dropdown" uib-dropdown-toggle>
                  {{client.cname}}
                </span>
                <ul style="margin-top:13px;text-align:center" class="dropdown-menu" uib-dropdown-menu aria-labelledby="simple-dropdown">
                  <li style="font-size:15px">
                    <a href="/#!/orderlist">订单列表</a>
                    <a href="/#!/addradmin">配送信息管理</a>
                    <a ng-click="logout()">退出登录</a>
                  </li>
                </ul>
              </div>
              <!--<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
                <i class="fa fa-user fa-fw"></i>&nbsp;admin&nbsp;<span class="caret"></span></a>
              <ul class="dropdown-menu" role="menu">
                <li><a href="">订单列表</a></li>
                <li><a href="">退出登录</a></li>
              </ul>-->
            </li>
          </ul>
        </div>
      </div>
    </nav>
</section>